<?php

class Log {
	
	public static function write($string){
		$vardate = date("d/m/Y-H:i:s");
		error_log($vardate. " ". $string." \n" , 3, "log/mes-erreurs.log");
	}
	
	public static function writeuid($string,$uid){
		$vardate = date("d/m/Y-H:i:s");
		error_log($vardate. " " . $string." \n" , 3, "log/" .uid. ".log");
	}
	
	public static function var_dump($var)
	{
		ob_start();
		var_dump($var);
		return ob_get_clean();
	}
}